/*
 * Copyright 2021 Shulie Technology, Co.Ltd
 * Email: shulie@shulie.io
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.pamirs.tro.entity.domain.entity;

import java.util.Date;

public class TShadowTableConfig extends BaseEntity {
    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_shadow_table_config.ID
     *
     * @mbggenerated
     */
    private Long id;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_shadow_table_config.SHADOW_TABLE_NAME
     *
     * @mbggenerated
     */
    private String shadowTableName;

    /**
     * 数据源id
     */
    private Long shadowDatasourceId;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_shadow_table_config.ENABLE_STATUS
     *
     * @mbggenerated
     */
    private Integer enableStatus;

    private Date createTime;

    private Date updateTime;

    public TShadowTableConfig(Long id, Long shadowDatasourceId, String shadowTableName, Integer enableStatus,
        Date createTime, Date updateTime) {
        this.id = id;
        this.shadowDatasourceId = shadowDatasourceId;
        this.shadowTableName = shadowTableName;
        this.enableStatus = enableStatus;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public TShadowTableConfig(Long id, Long shadowDatasourceId, String shadowTableName, Integer enableStatus) {
        this.id = id;
        this.shadowDatasourceId = shadowDatasourceId;
        this.shadowTableName = shadowTableName;
        this.enableStatus = enableStatus;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_shadow_table_config
     *
     * @mbggenerated
     */
    public TShadowTableConfig() {
        super();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_shadow_table_config.ID
     *
     * @return the value of t_shadow_table_config.ID
     * @mbggenerated
     */
    public Long getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_shadow_table_config.ID
     *
     * @param id the value for t_shadow_table_config.ID
     * @mbggenerated
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_shadow_table_config.SHADOW_TABLE_NAME
     *
     * @return the value of t_shadow_table_config.SHADOW_TABLE_NAME
     * @mbggenerated
     */
    public String getShadowTableName() {
        return shadowTableName;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_shadow_table_config.SHADOW_TABLE_NAME
     *
     * @param shadowTableName the value for t_shadow_table_config.SHADOW_TABLE_NAME
     * @mbggenerated
     */
    public void setShadowTableName(String shadowTableName) {
        this.shadowTableName = shadowTableName == null ? null : shadowTableName.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_shadow_table_config.ENABLE_STATUS
     *
     * @return the value of t_shadow_table_config.ENABLE_STATUS
     * @mbggenerated
     */
    public Integer getEnableStatus() {
        return enableStatus;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_shadow_table_config.ENABLE_STATUS
     *
     * @param enableStatus the value for t_shadow_table_config.ENABLE_STATUS
     * @mbggenerated
     */
    public void setEnableStatus(Integer enableStatus) {
        this.enableStatus = enableStatus;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public Date getUpdateTime() {
        return updateTime;
    }

    @Override
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Long getShadowDatasourceId() {
        return shadowDatasourceId;
    }

    public void setShadowDatasourceId(Long shadowDatasourceId) {
        this.shadowDatasourceId = shadowDatasourceId;
    }

    @Override
    public String toString() {
        return "TShadowTableConfig{" +
            "id=" + id +
            ", shadowTableName='" + shadowTableName + '\'' +
            ", shadowDatasourceId=" + shadowDatasourceId +
            ", enableStatus=" + enableStatus +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
            '}';
    }

}
